package com.egg.basic.entity.pay;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付记录
 * </p>
 *
 * @author east
 * @since 2021-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "basic_pay_record")
@ApiModel(value = "PayRecord对象", description = "支付记录")
public class PayRecord extends BaseEntity {


    @ApiModelProperty(value = "业务类型", notes = "com.egg.basic.enums.pay.BusinessTypeEnum")
    @TableField(value = "business_type")
    private String businessType;

    @ApiModelProperty(value = "业务ID")
    @TableField(value = "business_id")
    private String businessId;

    @ApiModelProperty(value = "用户ID")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty(value = "支付的值(分)")
    @TableField(value = "amount")
    private Long amount;

    @ApiModelProperty(value = "支付方式", notes = "com.egg.basic.enums.pay.PayTypeEnum")
    @TableField(value = "pay_type")
    private String payType;

    @ApiModelProperty(value = "支付端类型", notes = "com.egg.basic.enums.pay.ClientTypeEnum")
    @TableField(value = "client_type")
    private String clientType;

    @ApiModelProperty(value = "订单描述")
    @TableField(value = "subject")
    private String subject;

    @ApiModelProperty(value = "交易状态", notes = "com.egg.basic.enums.pay.TradeStateEnum")
    @TableField(value = "trade_state")
    private String tradeState;

    @ApiModelProperty(value = "交易号")
    @TableField(value = "trade_no")
    private String tradeNo;


}
